﻿using System;
using System.Web.UI;
using HiTeachers.Services;

namespace HiTeachers.Web
{
    public partial class Guide : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack) return;

            rptGuides.DataSource = StaticPageServices.GetGuides();
            rptGuides.DataBind();

            BindingMetaData("Guid");
            var siteConfig = SiteConfigServices.GetByTextKey("Guid");
            if (siteConfig != null) Page.Title = siteConfig.Value;
        }
    }
}
